<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>按年度财务信息删选出的股票</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
    <div th:include="fragment/navigation-bar :: bar" ></div>

    <table border="1" style="text-align:right">
        <tr>
            <td rowspan="2" style="width:66px">名称</td>
            <td rowspan="2">代码</td>
            <td rowspan="2">pe</td>
            <td th:attr="colspan=${stockDataList.get(0).reportDateList.size()}">收入增长率</td>
            <td th:attr="colspan=${stockDataList.get(0).reportDateList.size()}">利润增长率</td>
            <td rowspan="2" style="text-align:left">主营业务</td>
        </tr>
        <tr>
            <td th:each="reportDate : ${stockDataList.get(0).reportDateList}" th:text="${reportDate.replaceAll('[年报]','')}"></td>
            <td th:each="reportDate : ${stockDataList.get(0).reportDateList}" th:text="${reportDate.replaceAll('[年报]','')}"></td>
        </tr>
        <tr th:each="stockData : ${stockDataList}">
            <td><a th:text="${stockData.name}" th:href="@{/stock/main-finance(code=${stockData.code})}"></a></td>
            <td th:text="${stockData.code}"></td>
            <td th:text="${stockData.pe}"></td>
            <td th:each="revenueRaise : ${stockData.revenueRaise}" th:text="${revenueRaise}" ></td>
            <td th:each="profitRaise : ${stockData.profitRaise}" th:text="${profitRaise}" ></td>
            <td style="text-align:left" th:text="${stockData.mainBusiness}"></td>
        </tr>
    </table>
</body>
</html>